Skip to content

wxGUI/tplot: Make the window resizable - #7820

Merged
petrasovaa merged 2 commits into
OSGeo:mainfrom
saket0187:Fix-resize-issue-in-g.gui.tplot
Aug 18, 2026
Merged

wxGUI/tplot: Make the window resizable#7820
petrasovaa merged 2 commits into
OSGeo:mainfrom
saket0187:Fix-resize-issue-in-g.gui.tplot

Conversation

@saket0187

Copy link
Copy Markdown
Contributor

This PR addresses the issue reported by @ninsbl.

Although I cannot verify the changes directly since I am on macOS, I hope this resolves it. @ninsbl, could you please test this? If it doesn't work, we can either close this PR or pass it along to someone else.

AI Summary This PR fixes an issue where the g.gui.tplot window could only be resized via maximize, not by dragging its edges. The frame previously had no sizer of its own and was fit directly to its content's minimum size with no explicit minimum set, leaving no room to shrink and (on GTK) no reliable resize grip to grow from. The fix gives the frame its own sizer wrapping the main panel, fits through that sizer (preserving the original opening size while capping at the display area), and sets an explicit 400×400 minimum so the window can be dragged smaller; nothing in the codebase sets a maximum, so growing was never actually blocked by wx. It also removes five stray sizer.Fit(self) calls on notebook sub-panels that were mistakenly resizing the whole frame instead of their own panel.

Note: Claude was used as a coding assistant for this PR..

@github-actions github-actions Bot added GUI wxGUI related Python Related code is in Python labels Aug 10, 2026
@ninsbl

ninsbl commented Aug 16, 2026

Copy link
Copy Markdown
Member

Thanks, @saket0187 for addressing this. The proposed changes work fine. When I went back to the Add_stds branch after testing this, I - however - could not reproduce the problematic behavior I experienced on that branch either. So it may have been a temporary (and maybe WSL related) issue. Unfortunately, I am not that familiar with WX specific code. @petrasovaa do you have any opinion about this PR? Does it make sense any way?

@petrasovaa

Copy link
Copy Markdown
Contributor

Generally this makes sense and I tested on linux. One thing we could add here is to increase the padding around the input widgets.

@saket0187

Copy link
Copy Markdown
Contributor Author

Generally this makes sense and I tested on linux. One thing we could add here is to increase the padding around the input widgets.

Added the padding. Try it once.

@petrasovaa petrasovaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@petrasovaa
petrasovaa merged commit 8f156a1 into OSGeo:main Aug 18, 2026
26 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI wxGUI related Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants